using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Ledict.ConditionExtract.Model {

	/// <summary>
	/// 法规条文
	/// </summary>
	[JsonObject(MemberSerialization.OptIn)]
	public partial class T_Law_Article {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public int LP_ID { get; set; }

		/// <summary>
		/// 依据分类{1,2}
		/// </summary>
		[JsonProperty]
		public int? BasisType { get; set; }

		/// <summary>
		/// 旧库款项Id
		/// </summary>
		[JsonProperty]
		public int? ClauseInID { get; set; }

		/// <summary>
		/// 法规ID
		/// </summary>
		[JsonProperty]
		public int? L_ID { get; set; }

		/// <summary>
		/// 附件内容序号
		/// </summary>
		[JsonProperty]
		public int? LP_AnnexContent_Number { get; set; }

		/// <summary>
		/// 条序号
		/// </summary>
		[JsonProperty]
		public int? LP_Article_Number { get; set; }

		[JsonProperty, Column(DbType = "nvarchar(50)")]
		public string LP_ArticleName { get; set; } = string.Empty;

		/// <summary>
		/// 章序号
		/// </summary>
		[JsonProperty]
		public int? LP_Chapter_Number { get; set; }

		/// <summary>
		/// 正文内容
		/// </summary>
		[JsonProperty]
		public int? LP_Content_Number { get; set; }

		/// <summary>
		/// 生效日期
		/// </summary>
		[JsonProperty, Column(DbType = "date")]
		public DateTime? LP_EffectiveDate { get; set; }

		/// <summary>
		/// 实施日期
		/// </summary>
		[JsonProperty, Column(DbType = "date")]
		public DateTime? LP_EnforceDate { get; set; }

		[JsonProperty, Column(DbType = "varchar(50)")]
		public string LP_Guid { get; set; } = string.Empty;

		/// <summary>
		/// 正文首部拆分序号
		/// </summary>
		[JsonProperty]
		public int? LP_Header_Number { get; set; }

		/// <summary>
		/// 排序(按内容依次排序)
		/// </summary>
		[JsonProperty]
		public int? LP_InOrder { get; set; }

		/// <summary>
		/// 项序号
		/// </summary>
		[JsonProperty]
		public int? LP_Item_Number { get; set; }

		/// <summary>
		/// 条文的名称
		/// </summary>
		[JsonProperty, Column(DbType = "nvarchar(50)")]
		public string LP_Name { get; set; } = string.Empty;

		/// <summary>
		/// 正文尾部序号
		/// </summary>
		[JsonProperty]
		public int? LP_Other_Number { get; set; }

		/// <summary>
		/// 款序号
		/// </summary>
		[JsonProperty]
		public int? LP_Paragraph_Number { get; set; }

		/// <summary>
		/// 父ID
		/// </summary>
		[JsonProperty]
		public int? LP_ParentID { get; set; }

		/// <summary>
		/// 条文的树形路径
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(50)")]
		public string LP_Path { get; set; } = string.Empty;

		/// <summary>
		/// 编序号
		/// </summary>
		[JsonProperty]
		public int? LP_Piece_Number { get; set; }

		/// <summary>
		/// 0为未下放，1已下放
		/// </summary>
		[JsonProperty]
		public int? LP_ProcessStateTransfer { get; set; }

		/// <summary>
		/// 节序号
		/// </summary>
		[JsonProperty]
		public int? LP_Section_Number { get; set; }

		/// <summary>
		/// 目序号
		/// </summary>
		[JsonProperty]
		public int? LP_SubItem_Number { get; set; }

		/// <summary>
		/// 子序
		/// </summary>
		[JsonProperty]
		public int? LP_Subsequence { get; set; }

		/// <summary>
		/// 条文内容
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(MAX)")]
		public string LP_Text { get; set; } = string.Empty;

		/// <summary>
		/// 条文标题
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(500)")]
		public string LP_Title { get; set; } = string.Empty;

		/// <summary>
		/// 条文类型对应字典值
		/// </summary>
		[JsonProperty, Column(DbType = "varchar(5)")]
		public string LP_Type { get; set; } = string.Empty;

		/// <summary>
		/// 旧库的法条Id
		/// </summary>
		[JsonProperty]
		public int? ProvInID { get; set; }

	}

}
